    <style>
      :host dialog {
        --drawer-width: 256px;
        --transition-timing: 200ms ease;
        background-color: var(--cr-drawer-background-color, #fff);
        border: none;
        bottom: 0;
        left: calc(-1 * var(--drawer-width));
        margin: 0;
        max-height: initial;
        max-width: initial;
        overflow: hidden;
        padding: 0;
        position: absolute;
        top: 0;
        transition: left var(--transition-timing);
        width: var(--drawer-width);
      }

      @media (prefers-color-scheme: dark) {
        :host dialog {
          background: var(--cr-drawer-background-color, var(--google-grey-900))
              linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04));
        }
      }

      :host dialog,
      #container {
        height: 100%;
        word-break: break-word;
      }

      :host([show_]) dialog {
        left: 0;
      }

      :host([align=rtl]) dialog {
        left: auto;
        right: calc(-1 * var(--drawer-width));
        transition: right var(--transition-timing);
      }

      :host([show_][align=rtl]) dialog {
        right: 0;
      }

      :host dialog::backdrop {
        background: rgba(0, 0, 0, 0.5);
        bottom: 0;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
        transition: opacity var(--transition-timing);
      }

      :host([show_]) dialog::backdrop {
        opacity: 1;
      }

      .drawer-header {
        align-items: center;
        border-bottom: var(--cr-separator-line);
        color: var(--cr-drawer-header-color, inherit);
        display: flex;
        font-size: 123.08%;  /* go to 16px from 13px */
        font-weight: var(--cr-drawer-header-font-weight, inherit);
        min-height: 56px;
        padding-inline-start: var(--cr-drawer-header-padding, 24px);
      }

      @media (prefers-color-scheme: dark) {
        .drawer-header {
          color: var(--cr-primary-text-color);
        }
      }

      #heading {
        outline: none;
      }

      :host ::slotted([slot='body']) {
        height: calc(100% - 56px);
        overflow: auto;
      }

      picture {
        margin-inline-end: 16px;
      }

      picture,
      #product-logo {
        height: 24px;
        width: 24px;
      }
    </style>
    <dialog id="dialog" on-cancel="onDialogCancel_" on-click="onDialogTap_"
        on-close="onDialogClose_">
      <div id="container" on-click="onContainerTap_">
        <div class="drawer-header">
          <slot name="header-icon">
            <picture>
              <source media="(prefers-color-scheme: dark)"
                  srcset="//resources/images/chrome_logo_dark.svg">
              <img id="product-logo"
                  srcset="chrome://theme/current-channel-logo@1x 1x,
                          chrome://theme/current-channel-logo@2x 2x"
                  role="presentation">
            </picture>
          </slot>
          <div id="heading" tabindex="-1">[[heading]]</div>
        </div>
        <slot name="body"></slot>
      </div>
    </dialog>
